﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProductInfo.ascx.cs"
    Inherits="HCFramework.Product.Payment.Control.ProductInfo" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<div class="groupHeader">
    <%=M.Common.GetLang("Chi tiết đơn hàng") %>
</div>
<telerik:RadGrid ID="RadGridMain" runat="server" Skin="Office2007" AutoGenerateColumns="False"
    OnItemCommand="RadGridMain_ItemCommand" OnPreRender="RadGridMain_PreRender" AllowPaging="True"
    AllowSorting="True" GridLines="None" AllowMultiRowSelection="True" ShowFooter="true"
    OnItemDataBound="RadGridMain_ItemDataBound">
    <ClientSettings>
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
    <MasterTableView CommandItemSettings-AddNewRecordText="Thêm mới" NoMasterRecordsText="Hiện chưa có sản phẩm nào trong giỏ hàng.">
        <RowIndicatorColumn>
            <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px" />
        </ExpandCollapseColumn>
        <CommandItemSettings AddNewRecordText="Thêm mới" />
        <Columns>
            <telerik:GridBoundColumn DataField="ProductId" UniqueName="ProductId" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn HeaderText="Mã sản phẩm" UniqueName="ProductCode" FooterStyle-BackColor="White">
                <ItemTemplate>
                    <asp:Literal Text='<%#Eval("ProductCode")%>' ID="litProductCode" runat="server"></asp:Literal>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Tên sản phẩm" UniqueName="ProductName" FooterStyle-BackColor="White">
                <ItemTemplate>
                    <asp:HyperLink ID="linkProductDetail" runat="server" Text='<%#Eval("ProductName")%>'
                        Target="_blank"></asp:HyperLink>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Số lượng" UniqueName="Count" FooterStyle-BackColor="White">
                <ItemTemplate>
                    <asp:Literal Text='<%#Eval("Count")%>' ID="litCount" runat="server"></asp:Literal>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Đơn giá" UniqueName="Price" ItemStyle-HorizontalAlign="Right"
                FooterStyle-BackColor="White">
                <ItemTemplate>
                    <b>
                        <asp:Literal Text='<%#Eval("Price")%>' ID="litPrice" runat="server"></asp:Literal>
                        VNĐ </b>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Thành tiền" UniqueName="TotalPrice" ItemStyle-HorizontalAlign="Right"
                FooterStyle-HorizontalAlign="Right" FooterStyle-BackColor="White">
                <ItemTemplate>
                    <b>
                        <asp:Literal ID="litTotalPrice" runat="server"></asp:Literal>
                        VNĐ </b>
                </ItemTemplate>
                <FooterTemplate>
                    <%=M.Common.GetLang("Tổng") %>: <b>
                        <asp:Literal ID="litTotalPrice" runat="server"></asp:Literal>
                        VNĐ </b>
                </FooterTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
